﻿using System;
using System.Linq;
using WebApp.Domain;
using WebApp.Data;
using System.Collections.Generic;
using COM.Data;
using COM.Web;
using COM.Service;
using WebApp.Service;

namespace WebApp.Web.Service
{
    /// <summary>
    /// 访问服务的快捷方式,集成常用的服务
    /// </summary>
    public interface ISingletonService
    {
        System.Security.Cryptography.MD5 MD5 { get; }
    }

    public class SingletonService : ISingletonService
    {
        public System.Security.Cryptography.MD5 MD5
        {
            get
            {
                var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
                return md5;
            }
        }
    }

    

}
